#ifndef __UTIL_FACTORY_H__
#define __UTIL_FACTORY_H__

#include <stdio.h>
#include "stringlib.h"
#include "bsp_msgqueue.h"

#define SHARE_DDR_BLOCK_SIZE 64

int read_file(char *filepath, void * __restrict data,long offset,size_t size_type,size_t len);
int write_file(char *fileName_withPath, void *__restrict data,size_t size_type,size_t len);
void creat_file_name(char *filePath,int type,int num,char * outfileName);

int lib_memcpy(void *dst,void *src,size_t size);

int thread_uSleep(unsigned int usec);
int thread_mSleep(unsigned int msec);
void nano_usleep(unsigned int uSec);

#endif